package com.ywd.materials.admin.utils;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lk
 * @date 2024/5/24 14:44
 */
@Data
@Accessors(chain = true)
public class MenuVo implements Serializable {

  private Integer id;

  @Schema(description = "父级菜单ID")
  private Integer parentId;

  @Schema(description = "菜单名称")
  private String menuName;

  @Schema(description = "菜单等级（0: 为一级菜单，1：为二级菜单，2：为三级菜单，以此类推）")
  private Integer menuLevel;

  @Schema(description = "菜单路由")
  private String menuPath;

  @Schema(description = "后端接口集合")
  private String apiUrls;

  @Schema(description = "菜单排序")
  private Integer menuSort;

  @Schema(description = "子菜单")
  private List<MenuVo> childrenMenu = new ArrayList<>();

}
